package org.demo.spring.ioc.factorybean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext-ioc-factory-test.xml");
        HttpClientService httpClientService = (HttpClientService) applicationContext.getBean("httpClientFactoryBean");

        httpClientService.service();

    }
}
